package com.assist.manage.controller;

import com.assist.common.entity.user.User;
import com.assist.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wuqiang on 2022/7/4 16:11
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/select/one", method = RequestMethod.GET)
    public String selectOne() {
        User user = userService.selectById(678639645099503616L);
        return user.toString();
    }

}
